public class Test<T extends Number> {
    public Object[] array = new Object[5];
    public void set(int i, T k){
        array[i] = k;
    }
    public T get(int i){
        return (T)this.array[i];
    }
    public static void main(String[] args) {
        //定义一个什么都能接受的数组；
      /*  public Object[] array = new Object[5];*/
        Test<Integer> test = new Test();
        test.set(0,1);
        //test.set(1,"apple");
        System.out.println(test.get(0));
       // System.out.println(test.get(1));
        //String s = (String)test.get(1);
        //System.out.println(s);
        //Test<String> test1 = new Test();

    }
    public static void main1(String[] args) {
        int x = 10;
        /*float y = (float)(x / 9);*/
        float y = (int)x / (float)9;
        System.out.println(y);
    }
}
